package com.gljx.web.service.impl;

import com.gljx.web.Entity.Drivingentrys;
import com.gljx.web.dao.DrivingentrysMapper;
import com.gljx.web.service.DrivingentrysService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2017/11/4 0004.
 */
@Transactional
@Service
public class DrivingentrysServiceImpl implements DrivingentrysService {

    @Autowired
    private DrivingentrysMapper drivingentrysMapper;

    @Override
    public List<Drivingentrys> queryDrivingentrysByFid(String fid) {
        return drivingentrysMapper.selectByPrimary(fid);
    }

    @Override
    public void addDrivingentrys(Drivingentrys drivingentrys) {
        drivingentrysMapper.insertSelective(drivingentrys);
    }

    @Override
    public void modifyDrivingentrys(Drivingentrys drivingentrys) {
        drivingentrysMapper.updateByPrimaryKeySelective(drivingentrys);
    }

    @Override
    public void deleteDrivingentrys(String updateid) {
        drivingentrysMapper.deleteByPrimaryKey(updateid);
    }
}
